
<!--================	附件管理			====================-->
<!--发文单位附件上传str-->
<#if editState ="modify">
	<div align="center" id="divAttachments">
		<fieldset class="fieldAttachment" style="text-align:left;">
	    	<legend>
					附件管理
			</legend>
			<div id="_attachments1" style="float:left;margin-left:20px;">
			</div>
		</fieldset>
		<script type="text/javascript">
		<!--
			$(document).ready(function(){
				var $attach=$("#_attachments1");
				// 生成供下载的附件及上传功能
				//防止使用dialog弹出页面时再次执行该代码又生成了上传附件
				var isCreated=$attach.attr("isCreated");
				var eventOptions = {	// 定义uploadify对象的定制事件
				};
				if(isEmpty(isCreated) || isCreated!="true"){
					$attach.showAddAttachment("WEEK_RECORD",${(weekRecord.lwDocDataId)?if_exists},"","*.*",true,true,eventOptions);
					$attach.attr("isCreated","true");
				}
			});
		//-->
		</script>		
</div>
</#if>	
<!--发文单位附件上传end-->
		
<!--主办单位附件上传str-->
<#if editState !="modify"&editState ="needDoing">
	<div align="center" id="divAttachments">
			<fieldset class="fieldAttachment" style="text-align:left;">
		    	<legend>
						附件管理
				</legend>
				<div id="_attachments2" style="float:left;margin-left:10px;">
				</div>
			</fieldset>
			<script type="text/javascript">
			<!--
				$(document).ready(function(){
					var $attach=$("#_attachments2");
					// 生成供下载的附件及上传功能
					//防止使用dialog弹出页面时再次执行该代码又生成了上传附件
					var isCreated=$attach.attr("isCreated");
					var eventOptions = {	// 定义uploadify对象的定制事件
					};
					if(isEmpty(isCreated) || isCreated!="true"){
						$attach.showAddAttachment("WEEK_RECORD",${(weekRecord.swDocDataId)?if_exists},"","*.*",true,true,eventOptions);
						$attach.attr("isCreated","true");
					}
				});
			//-->
			</script>		
	</div>
</#if>			
<!--主办单位附件上传str-->


<!--协办单位start-->	
<#if editState ="isCoOperation">
<div align="center" id="divAttachments">
		<fieldset class="fieldAttachment" style="text-align:left;">
	    	<legend>
					附件管理
			</legend>
			<div id="_attachments3" style="float:left;margin-left:10px;">
			</div>
		</fieldset>
		<script type="text/javascript">
		<!--
			$(document).ready(function(){
				var $attach=$("#_attachments3");
				// 生成供下载的附件及上传功能
				//防止使用dialog弹出页面时再次执行该代码又生成了上传附件
				var isCreated=$attach.attr("isCreated");
				var eventOptions = {	// 定义uploadify对象的定制事件
				};
				if(isEmpty(isCreated) || isCreated!="true"){
					$attach.showAddAttachment("WEEK_RECORD",${(weekCoOperation.docDataId)?if_exists},"","*.*",true,true,eventOptions);
					$attach.attr("isCreated","true");
				}
			});
		//-->
		</script>		
</div>				
</#if>
<!--协办单位end-->
			<!--================	附件管理下载结束			====================-->		